/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bff.slimserver.musicjukebox.lib.actions;

import com.bff.slimserver.musicjukebox.lib.JukeboxProperties;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bff.slimserver.SlimPlaylist;
import org.bff.slimserver.SlimPodcaster;
import org.bff.slimserver.exception.SlimConnectionException;
import org.bff.slimserver.musicobjects.SlimPodcastItem;

/**
 *
 * @author bill
 */
public abstract class PodcastAction extends PlaylistAction {

    private SlimPodcastItem podcast;
    private SlimPodcaster podcaster;

    public PodcastAction(SlimPlaylist playlist, 
            SlimPodcastItem podcast) {
        super(playlist);
        this.podcast = podcast;
        try {
            this.podcaster = JukeboxProperties.getInstance().getPodcaster();
        } catch (SlimConnectionException ex) {
            Logger.getLogger(PodcastAction.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /**
     * @return the podcast
     */
    public SlimPodcastItem getPodcastItem() {
        return podcast;
    }

    /**
     * @param podcast the podcast to set
     */
    public void setPodcastItem(SlimPodcastItem podcast) {
        this.podcast = podcast;
    }

    /**
     * @return the podcaster
     */
    public SlimPodcaster getPodcaster() {
        return podcaster;
    }
}
